package com.md.lesson8;

import java.util.Scanner;

public class Circle {
	public static void getCir(double r) {
		double cirPer = 3.14*2*r;
		
		double cirArea = 3.14*r*r;
		
		System.out.println("圆的周长是：" + cirPer);
		System.out.println("圆的面积是：" + cirArea);
		
	}

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		System.out.println("请输入半径：");
		double r = s.nextDouble();
		
		getCir(r);

	}

}
